package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleLawEntry;
import com.caigou.pojo.ArticleDataEntryListData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper
//@Repository("ArticleLawEntryMapper")
public interface ArticleLawEntryMapper {
    int saveArticleEntryData(ArticleLawEntry articleLawEntry);

    int deleteArticleEntry(@Param("id") Integer id);

    int updateArticleEntry(ArticleLawEntry articleLawEntry);

    List<ArticleDataEntryListData> loadArticleEntryList(@Param("superId") Integer superId, @Param("articleId") String articleId);

    ArticleLawEntry loadArticleEntry(@Param("id") Integer id);

    List<ArticleLawEntry> loadArticleEntryBySuperId(@Param("id") Integer id);

    int deleteArticleEntryByArticleId(@Param("articleId") String articleId);
}